﻿<Window x:Class="WpfSample.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:ui="clr-namespace:Osteox.ManagedCv.Wpf;assembly=Osteox.ManagedCv.Gui.Wpf"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ManagedCv Sample - Wpf" Height="600" Width="800">
    <DockPanel LastChildFill="True">
        <Menu Name="menu1" DockPanel.Dock="Top">
            <MenuItem Header="File">
                <MenuItem Header="Open" Click="MenuItem_Click_Open" />
                <MenuItem Header="Save" Click="MenuItem_Click_Save" />
                <Separator />
                <MenuItem Header="Exit" Click="MenuItem_Click_Exit" />
            </MenuItem>
            <MenuItem Header="Edit">
                <MenuItem Header="Undo" Click="MenuItemUndo_Click"/>
                <MenuItem Header="Redo" Click="MenuItemRedo_Click"/>
            </MenuItem>
            <MenuItem Header="Filter">
                <MenuItem Header="Sharpen" Click="MenuItem_Click_Sharpen"/>
                <MenuItem Header="Smooth" Click="MenuItem_Click_Smooth"/>
                <MenuItem Header="Edge">
                    <MenuItem Header="Sobel" Click="MenuItem_Click_Sobel"/>
                    <MenuItem Header="Canny" Click="MenuItem_Click_Canny"/>
                    <MenuItem Header="Laplace" Click="MenuItem_Click_Laplace"/>
                </MenuItem>
                <Separator />
                <MenuItem Header="Gray -&gt; Bgr" Click="MenuItem_Click_GrayToBgr"/>
                <MenuItem Header="Bgr -&gt; Gray" Click="MenuItem_Click_BgrToGray"/>
                <Separator />
                <MenuItem Header="Morphological">
                    <MenuItem Header="Erode" Click="MenuItem_Click_Erode"/>
                    <MenuItem Header="Dilate" Click="MenuItem_Click_Dilate"/>
                    <Separator />
                    <MenuItem Header="MorphologyEx" Click="MenuItem_Click_MorphologyEx"/>
                    <Separator />
                    <MenuItem Header="Distance" Click="MenuItem_Click_Distance"/>
                    <MenuItem Header="Watershed" Click="MenuItem_Click_Watershed"/>
                </MenuItem>
                <MenuItem Header="Threshold">
                    <MenuItem Header="Adaptive" Click="MenuItem_Click_AdaptiveThreshold"/>
                    <MenuItem Header="Threshold" Click="MenuItem_Click_Threshold"/>
                </MenuItem>
                <MenuItem Header="Merge" Click="MenuItem_Click_Merge"/>
                <MenuItem Header="Max" Click="MenuItem_Click_Max"/>
                <MenuItem Header="Inverse" Click="MenuItem_Click_Inverse"/>
                <MenuItem Header="Histogram">
                    <MenuItem Header="Equalize" Click="MenuItem_Click_Equalize"/>
                    <MenuItem Header="Normalize" Click="MenuItem_Click_Normalize"/>
                </MenuItem>
                <MenuItem Header="Scale" Click="MenuItem_Click_Scale"/>
            </MenuItem>
        </Menu>
        <StatusBar Height="23" HorizontalAlignment="Stretch"  Name="statusBar1" VerticalAlignment="Bottom" DockPanel.Dock="Bottom">
            <StatusBarItem Name="toolStripStatusLabel" />
            <StatusBarItem Name="toolStripStatusLabelImage" HorizontalAlignment="Right" MouseDoubleClick="toolStripStatusLabelImage_MouseDoubleClick" />
        </StatusBar>
        <Grid Name="grid1">
            <ui:ImageViewer Name="imageViewer" Source="{Binding Path=CurrentImage, Mode=TwoWay}"/>
        </Grid>
    </DockPanel>
</Window>
